<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <lay_head></lay_head>
        <lay_main></lay_main>
        <lay_footer></lay_footer>
    </div>
    <script>
    new Vue({
        el:"#app",
        data:{
            msg:"1111"
        },
        components:{
            "lay_head":{
                template:"<div><h1>我是导航</h1></div>"
            },
            "lay_main":{
                template:"<div><h1>我是主要部分</h1></div>"
            },
            "lay_footer":{
                template:"<div><h1>我是页尾</h1></div>"
            }
        }
    })
    
    </script>
    
</body>
</html>